package com.itheima.gamedemo;

/**
 * 卡片类
 */
public class GameCard {
    //创建卡片属性 值：3 4 5 6 7 8 9 10 J Q K A 2
    //           花色: ♠ ♥ ♣ ♦
    private String size;
    private String color;
    //方便大小排序
    private int num;


    public GameCard() {
    }

    public GameCard(String size, String color, int num) {
        this.size = size;
        this.color = color;
        this.num = num;
    }

    /**
     * 获取
     * @return size
     */
    public String getSize() {
        return size;
    }

    /**
     * 设置
     * @param size
     */
    public void setSize(String size) {
        this.size = size;
    }

    /**
     * 获取
     * @return color
     */
    public String getColor() {
        return color;
    }

    /**
     * 设置
     * @param color
     */
    public void setColor(String color) {
        this.color = color;
    }

    /**
     * 获取
     * @return num
     */
    public int getNum() {
        return num;
    }

    /**
     * 设置
     * @param num
     */
    public void setNum(int num) {
        this.num = num;
    }

    public String toString() {
        return size + color;
    }
}
